﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EMC.VISITOR.Application
{
    [SugarTable(null, "车辆进出记录")]
    [BusinessVS]
    public class HKCrossRecord :  EntityBase
    {
        [SugarColumn(ColumnDescription = "过车记录唯一标识", IsNullable = true)]
        public string crossRecordSyscode { get; set; }
        [SugarColumn(ColumnDescription = "停车库唯一标识", IsNullable = true)]
        public string parkSyscode { get; set; }
        [SugarColumn(ColumnDescription = "停车库名称", IsNullable = true)]
        public string parkName { get; set; }
        [SugarColumn(ColumnDescription = "出入口唯一标识", IsNullable = true)]
        public string entranceSyscode { get; set; }
        [SugarColumn(ColumnDescription = "出入口名称", IsNullable = true)]
        public string entranceName { get; set; }
        [SugarColumn(ColumnDescription = "车道唯一标识", IsNullable = true)]
        public string roadwaySyscode { get; set; }
        [SugarColumn(ColumnDescription = "车道名称", IsNullable = true)]
        public string roadwayName { get; set; }
        [SugarColumn(ColumnDescription = "车牌号码", IsNullable = true, IndexGroupNameList = new string[] { "index_vislog_plateno" })]
        public string plateNo { get; set; }
        [SugarColumn(ColumnDescription = "卡片号码", IsNullable = true)]
        public string cardNo { get; set; }
        [SugarColumn(ColumnDescription = "图片服务唯一标识", IsNullable = true)]
        public string aswSyscode { get; set; }
        /// <summary>
        /// 通过时间ISO8601格式
        /// </summary>
        [SugarColumn(ColumnDescription = "通过时间", IsNullable = true)]
        public string crossTime { get; set; }
        /// <summary>
        /// 通过时间-正常时间
        /// </summary>
        [SugarColumn(ColumnDescription = "通过时间-正常时间", IsNullable = true)]
        public DateTime? corssTimeOk { get; set; }
        //[SugarColumn(ColumnDescription = "创建时间", IsNullable = true)]
        //public string createTime { get; set; }
        /// <summary>
        /// 0-进场  1-出场
        /// </summary>
        [SugarColumn(ColumnDescription = "是否出场", IsNullable = true)]
        public int? vehicleOut { get; set; }
        /// <summary>
        /// 0-未放行  1-正常放行  2-离线放行
        /// </summary>
        [SugarColumn(ColumnDescription = "放行结果", IsNullable = true)]
        public int? releaseResult { get; set; }
        /// <summary>
        /// 10-未开闸  11-自动开闸  12-人工/人工开闸  13-遥控器开闸
        /// </summary>
        [SugarColumn(ColumnDescription = "放行方式", IsNullable = true)]
        public int? releaseWay { get; set; }
        [SugarColumn(ColumnDescription = "来访单位", IsNullable = true)]
        public string vcompany { get; set; }
        [SugarColumn(ColumnDescription = "访客Id", IsNullable = true)]
        public long? visitorLogId { get; set; }
        #region 不需要的字段
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public override DateTime? CreateTime { get; set; }


        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public override DateTime? UpdateTime { get; set; }
        #endregion
    }
}
